﻿using GalaSoft.MvvmLight;
using KPI.Entity;
using KPI.UIBase;
using ScheduleManager.Helpers;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ScheduleManager.ViewModels
{
    public class ViewEditScheduleModel : ViewModelBase
    {
        private ScheduleModel _ScheduleModel;
        public ScheduleModel ScheduleModel { get => _ScheduleModel; set => Set("ScheduleModel", ref _ScheduleModel, value); }


        public ViewEditScheduleModel(ScheduleVO item, ObservableCollection<IntStringData> listShift)
        {
            ListShift = listShift;
            ScheduleModel = UIDataHelper.DataAsUI(item, listShift);
        }


        private ObservableCollection<IntStringData> _ListShift = new ObservableCollection<IntStringData>();
        public ObservableCollection<IntStringData> ListShift { get { return _ListShift; } set { Set("ListShift", ref _ListShift, value); } }



    }
}
